Component({
  data: {
    current: 0,
    list: [{
        img: '/utils/static/icon/home.png',
        selectedImg: '/utils/static/icon/home-active.png',
        path: '/pages/home/index'
      },
      {
        img: '/utils/static/icon/movie.png',
        selectedImg: '/utils/static/icon/movie-active.png',
        path: '/pages/movie/index'
      },
      {
        img: '/utils/static/icon/ticket-active.png',
        selectedImg: '/utils/static/icon/ticket-active.png',
        path: '/pages/ticket/index'
      },
      {
        img: '/utils/static/icon/cinema.png',
        selectedImg: '/utils/static/icon/cinema-active.png',
        path: '/pages/cinema/index'
      },
      {
        img: '/utils/static/icon/main.png',
        selectedImg: '/utils/static/icon/main-active.png',
        path: '/pages/main/index'
      }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    // 跳转页面
    goPage(e) {
      var path = e.currentTarget.dataset.path;
      wx.switchTab({
        url: path
      })
    }
  }
})